package com.pojo;
/**
 *
 **/

import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

/**
 * @Author weiwei
 * @Date 2020-11-19 20:59
 * @description
 **/
@Data
public class Child extends Parent{

    private String name;

    private String cName;

    public Child(){

    }

    public Child(Parent parent) throws InvocationTargetException, IllegalAccessException {
        BeanUtils.copyProperties(this,parent);
        cName = "11";
    }
}
